
package com.integratedapps.ns.test.services.operations.filesparser;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlType;
import com.integratedapps.ns.test.WsBusinessError;
import com.integratedapps.ns.test.WsSyncResponse;
import com.integratedapps.ns.test.WsSystemError;
import com.integratedapps.ns.test.data.external.salesorder.WsSalesOrder;


/**
 * 
 *                 Ответ на запрос на обработку файла.
 *             
 * 
 * <p>Java class for parseFileResponse complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="parseFileResponse">
 *   &lt;complexContent>
 *     &lt;extension base="{http://integrated-apps.com/ns/test}syncResponse">
 *       &lt;sequence>
 *         &lt;choice>
 *           &lt;sequence>
 *             &lt;element name="salesOrders">
 *               &lt;complexType>
 *                 &lt;complexContent>
 *                   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                     &lt;sequence>
 *                       &lt;element name="salesOrder" type="{http://integrated-apps.com/ns/test/data/external/sales-order}salesOrder" maxOccurs="unbounded" minOccurs="0"/>
 *                     &lt;/sequence>
 *                   &lt;/restriction>
 *                 &lt;/complexContent>
 *               &lt;/complexType>
 *             &lt;/element>
 *           &lt;/sequence>
 *           &lt;element ref="{http://integrated-apps.com/ns/test}businessError"/>
 *           &lt;element ref="{http://integrated-apps.com/ns/test}systemError"/>
 *         &lt;/choice>
 *       &lt;/sequence>
 *     &lt;/extension>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "parseFileResponse", propOrder = {
    "salesOrders",
    "businessError",
    "systemError"
})
public class WsParseFileResponse
    extends WsSyncResponse
{

    protected WsParseFileResponse.SalesOrders salesOrders;
    @XmlElementRef(name = "businessError", namespace = "http://integrated-apps.com/ns/test", type = WsBusinessError.class, required = false)
    protected WsBusinessError businessError;
    @XmlElementRef(name = "systemError", namespace = "http://integrated-apps.com/ns/test", type = WsSystemError.class, required = false)
    protected WsSystemError systemError;

    /**
     * Gets the value of the salesOrders property.
     * 
     * @return
     *     possible object is
     *     {@link WsParseFileResponse.SalesOrders }
     *     
     */
    public WsParseFileResponse.SalesOrders getSalesOrders() {
        return salesOrders;
    }

    /**
     * Sets the value of the salesOrders property.
     * 
     * @param value
     *     allowed object is
     *     {@link WsParseFileResponse.SalesOrders }
     *     
     */
    public void setSalesOrders(WsParseFileResponse.SalesOrders value) {
        this.salesOrders = value;
    }

    /**
     * Gets the value of the businessError property.
     * 
     * @return
     *     possible object is
     *     {@link WsBusinessError }
     *     
     */
    public WsBusinessError getBusinessError() {
        return businessError;
    }

    /**
     * Sets the value of the businessError property.
     * 
     * @param value
     *     allowed object is
     *     {@link WsBusinessError }
     *     
     */
    public void setBusinessError(WsBusinessError value) {
        this.businessError = value;
    }

    /**
     * Gets the value of the systemError property.
     * 
     * @return
     *     possible object is
     *     {@link WsSystemError }
     *     
     */
    public WsSystemError getSystemError() {
        return systemError;
    }

    /**
     * Sets the value of the systemError property.
     * 
     * @param value
     *     allowed object is
     *     {@link WsSystemError }
     *     
     */
    public void setSystemError(WsSystemError value) {
        this.systemError = value;
    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *         &lt;element name="salesOrder" type="{http://integrated-apps.com/ns/test/data/external/sales-order}salesOrder" maxOccurs="unbounded" minOccurs="0"/>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "values"
    })
    public static class SalesOrders {

        @XmlElement(name = "salesOrder")
        protected List<WsSalesOrder> values;

        /**
         * Gets the value of the values property.
         * 
         * <p>
         * This accessor method returns a reference to the live list,
         * not a snapshot. Therefore any modification you make to the
         * returned list will be present inside the JAXB object.
         * This is why there is not a <CODE>set</CODE> method for the values property.
         * 
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getValues().add(newItem);
         * </pre>
         * 
         * 
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link WsSalesOrder }
         * 
         * 
         */
        public List<WsSalesOrder> getValues() {
            if (values == null) {
                values = new ArrayList<WsSalesOrder>();
            }
            return this.values;
        }

    }

}
